import http from "@/utils/request"

export default {
	index: {
		method: `company.company.index`,
		name: "单位列表",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	getCompanyList: {
		method: `company.company.getCompany`,
		name: "获取单位",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	getChannelProviderList: {
		method: `company.company.getChannelProvider`,
		name: "获取渠道",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	getCompanyTypeList: {
		method: `company.company.getCompanyType`,
		name: "获取企业类型",
		get: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	store: {
		method: `company.company.store`,
		name: "单位保存",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	changeStatus: {
		method: `company.company.changeStatus`,
		name: "改变单位状态",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
	delete: {
		method: `company.company.delete`,
		name: "删除单位",
		post: async function (data = {}) {
			return await http.post(this.method, data);
		}
	},
}
